<%@ page import="org.apache.ibatis.session.SqlSession" %>
<%@ page import="myschool.util.MybatisUtil" %>
<%@ page import="myschool.dao.SubjectDao" %>
<%@ page import="myschool.service.SubjectService" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%

    String id = request.getParameter("id");
    int r = SubjectService.ME.del(Long.parseLong(id));
    if(r==0){
        out.print("删除失败！<a href='subject.jsp'>返回</a>");
        return;
    }
    response.sendRedirect("subject.jsp");
%>
</body>
</html>
